package com.lvcoding.auth2.jdbc.jwt.service.impl;

import com.lvcoding.auth2.jdbc.jwt.dao.SysUserDao;
import com.lvcoding.auth2.jdbc.jwt.entity.SysUser;
import com.lvcoding.auth2.jdbc.jwt.service.SysUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * (SysUser)表服务实现类
 *
 * @author wys
 * @since 2022-02-18 18:04:16
 */
@Service("sysUserService")
public class SysUserServiceImpl implements SysUserService {

    @Resource
    private SysUserDao sysUserDao;

    /**
     * 通过ID查询单条数据
     *
     * @param username 用户名
     * @return 实例对象
     */
    @Override
    public SysUser queryByUsername(String username) {
        return this.sysUserDao.queryByUsername(username);
    }


}
